package routes

import (
	"server/api"
	version1 "server/api/v1"

	"github.com/gin-gonic/gin"
)

//api总调度分配到这里实现
func Routes(app *gin.Engine) {

	{
		//调用socket.io
		app.GET("/ws", version1.WS)
	}

	app.POST("api/login", api.Login)
	v1 := app.Group("/api/v1")
	useVersion1(v1)

}
